package com.atom.app.mvi.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface ImageDao {

    @Insert(onConflict = OnConflictStrategy.IGNORE)
    suspend fun insert(image: Image):Long

    @Query("DELETE FROM table_image")
    fun deleteAll(): Int

    @Query("Select * from table_image")
    suspend fun selectAll(): List<Image>

}
